package com.spark.demoim.ui

/**
 * Created by lenovo on 2017/8/18.
 */
interface LogRegisterView {
    fun loginResult(succeed: Boolean)
    fun registerResult(succeed: Boolean)
    fun logoutResult(succeed: Boolean)
    fun phoneIsNull()
    fun phoneIsError()
    fun passwordIsNull()
    fun passwordIsError()
    fun changMode()
}

class LogRegisterPresenter(private val logRegisterView: LogRegisterView) {
    fun login() {
        logRegisterView.loginResult(true)
    }

    fun register() {
        logRegisterView.registerResult(true)
    }

    fun logout() {
        logRegisterView.logoutResult(true)
    }
}